//管理用户
import { defineStore } from 'pinia'
import { longinApi } from '@/uitlsJs/Axios/api/userLogin'
import { ref } from 'vue'

export const userDefineStore = defineStore("user", () => {

    const userInfo = ref({})

    const getUserInfo = async (email, password) => {
        let use = await longinApi(email,password);
        userInfo.value = use.data.data
        return use.data
    }

    return {
        userInfo,
        getUserInfo
    }
})
